<?php
/*
* Copyright (c) 2010 by Cediti
*
* You may distribute under the terms of either the GNU Lesser General
* Public License or the new BSD License, as specified in the README file.
*/

// created :	10 February 2010
// version :	10 February 2010

/**
 * Chargement automatique de class pour cmis
 * @param string $name class name
 * @return void (false in not found)
 */
function _autoloadCMIS($name)
{
	$path = str_replace('_', DIRECTORY_SEPARATOR, $name);
	$file = dirname(__FILE__) . DIRECTORY_SEPARATOR . $path . '.php';
	if (file_exists($file))
	{
		include_once $file;
	}
	else
	{
		return false;
	}
}

spl_autoload_register('_autoloadCMIS');

# EOF
